/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;

//import anet.channel.strategy.dispatch.DispatchConstants;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class VideoDetailEntity {
    private final boolean preview;
    @NotNull
    private final String videoKey;
    @NotNull
    private final String videoUrl;

    public VideoDetailEntity(@NotNull String videoUrl, @NotNull String videoKey, boolean z) {
        Intrinsics.checkNotNullParameter(videoUrl, "videoUrl");
        Intrinsics.checkNotNullParameter(videoKey, "videoKey");
        this.videoUrl = videoUrl;
        this.videoKey = videoKey;
        this.preview = z;
    }

    public static /* synthetic */ VideoDetailEntity copy$default(VideoDetailEntity videoDetailEntity, String str, String str2, boolean z, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            str = videoDetailEntity.videoUrl;
        }
        if ((i2 & 2) != 0) {
            str2 = videoDetailEntity.videoKey;
        }
        if ((i2 & 4) != 0) {
            z = videoDetailEntity.preview;
        }
        return videoDetailEntity.copy(str, str2, z);
    }

    @NotNull
    public final String component1() {
        return this.videoUrl;
    }

    @NotNull
    public final String component2() {
        return this.videoKey;
    }

    public final boolean component3() {
        return this.preview;
    }

    @NotNull
    public final VideoDetailEntity copy(@NotNull String videoUrl, @NotNull String videoKey, boolean z) {
        Intrinsics.checkNotNullParameter(videoUrl, "videoUrl");
        Intrinsics.checkNotNullParameter(videoKey, "videoKey");
        return new VideoDetailEntity(videoUrl, videoKey, z);
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof VideoDetailEntity)) {
            return false;
        }
        VideoDetailEntity videoDetailEntity = (VideoDetailEntity) obj;
        return Intrinsics.areEqual(this.videoUrl, videoDetailEntity.videoUrl) && Intrinsics.areEqual(this.videoKey, videoDetailEntity.videoKey) && this.preview == videoDetailEntity.preview;
    }

    public final boolean getPreview() {
        return this.preview;
    }

    @NotNull
    public final String getVideoKey() {
        return this.videoKey;
    }

    @NotNull
    public final String getVideoUrl() {
        return this.videoUrl;
    }

    public int hashCode() {
        int hashCode = ((this.videoUrl.hashCode() * 31) + this.videoKey.hashCode()) * 31;
        boolean z = this.preview;
        if (z) {
            z = true;
        }
        int i2 = z ? 1 : 0;
        int i3 = z ? 1 : 0;
        int i4 = z ? 1 : 0;
        return hashCode + i2;
    }

    @NotNull
    public String toString() {
        return "VideoDetailEntity(videoUrl=" + this.videoUrl + ", videoKey=" + this.videoKey + ", preview=" + this.preview + ')';
    }
}